import { requestPort } from '@/utils/request.js';


//我的提问列表
export function getMyAsk(params) {
  return requestPort({
    url: '/api/user/getJianghuMyQuiz',
    method: 'POST',
    params: params
  });
}


//我的回答列表
export function getMyAnswer(params) {
  return requestPort({
    url: '/api/user/getJianghuMyAns',
    method: 'POST',
    params: params
  });
}

// 清除未读消息
export function clearUnread(params) {
  return requestPort({
    url: '/api/mymessage/clearunread',
    method: 'POST',
    params: params
  });
}

// 获取回答问题列表
export function answerList(params) {
  return requestPort({
    url: '/api/mymessage/answerList',
    method: 'POST',
    params: params
  });
}


// 获取消息通知未读数
export function getMessage_count(params) {
  return requestPort({
    url: '/api/mymessage/getmessage_count',
    method: 'POST',
    params: params
  });
}

// 获取公告活动列表
export function getList(params) {
  return requestPort({
    url: '/api/Mymessage/getList',
    method: 'POST',
    params: params
  });
}

// 获得公告活动列表详情
export function getListInfo(params) {
  return requestPort({
    url: '/api/Mymessage/getListInfo',
    method: 'POST',
    params: params
  });
}

//获取系统通知不清除角标
export function getNotice(params) {
  return requestPort({
    url: '/api/mymessage/app_system_notice',
    method: 'POST',
    params: params
  });
}

// 获取我的评论列表
export function getComment(params) {
  return requestPort({
    url: '/api/mymessage/getcomment',
    method: 'POST',
    params: params
  });
}

// 获取我的赞列表
export function getLike(params) {
  return requestPort({
    url: '/api/mymessage/new_getgivelike',
    method: 'POST',
    params: params
  });
}

// 获取我的消息数据
export function getMessage(params) {
  return requestPort({
    url: '/api/mymessage/getmessage',
    method: 'POST',
    params: params
  });
}